package com.hyts.toolbox.utils;

import com.hyts.keygen.facade.IdGenerator;
import com.hyts.keygen.handler.KeyGenerator;
import com.hyts.serialize.execute.JsonExecutor;
import com.hyts.serialize.execute.SerializeExecutor;

import java.util.Optional;

/**
 * project-name:coffice-toolbox
 * package-name:com.hyts.toolbox.facade
 * author:Libo/Alex
 * create-date:2019-06-28 13:10
 * email:liboware@gmail.com
 * description:此类主要用于: 操作服务
 */
public interface ToolboxOfUtils {


    /**
     * keyGenerator id 自增操作
     */
    Optional<KeyGenerator> ID_KEY_GENERATOR = Optional.of(new IdGenerator());

    /**
     * Serialize-binary 二进制
     */
    Optional<SerializeExecutor> SERIALIZE_BINARY = Optional.of(SerializeExecutor.builder().build());

    /**
     * 序列号serialize扫描服务-json
     */
    Optional<JsonExecutor> SERIALIZE_JSON = Optional.of(JsonExecutor.build());


}
